//
//  RollLabel.h
//  HHNMobileFramework
//
//  Created by huihu on 15/11/2.
//  Copyright (c) 2015年 huhmf. All rights reserved.
//


#import <UIKit/UIKit.h>
#define kConstrainedSize CGSizeMake(10000,40)//字体最大

@interface RollLabel : UIScrollView


//rollLabelTitle方式中的两个label及他们的frame
@property (nonatomic,retain) UILabel *label1;
@property (nonatomic,retain) UILabel *label2;
@property (nonatomic,assign) CGRect frame1;
@property (nonatomic,assign) CGRect frame2;
//label每滑动一次的时间
@property (nonatomic,assign) float timeInterval;

@property (nonatomic,assign) NSTimer *timer;
//RollLabel的frame
@property (nonatomic,assign) CGRect RollFrame;

//设置滚动时的动画效果
@property (nonatomic,assign) UIViewAnimationOptions animationOption;

/*title,要显示的文字
 *color,文字颜色
 *font , 字体大小
 *superView,要加载标签的视图
 *rect ,标签的frame
 *tempspace,先后的文字间的间隔
 */

- (id)initWithFrame:(CGRect)frame withBgColor:(UIColor *)bgcolor;

//文字相继出现
- (void)rollLabelTitle:(NSString *)title textcolor:(UIColor *)color font:(UIFont *)font middleSpace:(NSUInteger) tempspace;

//滚动式文字只出现一次
- (void)rollOnlyOneTitle:(NSString *)title textcolor:(UIColor *)color font:(UIFont *)font;

//暂停已添加在页面中滚动的label
-(void)pause;

//恢复已添加在页面中label的滚动
-(void)reStart;


@end
